package com.study.config;

import com.study.bean.Customer;
import org.springframework.context.annotation.*;
import org.springframework.stereotype.Service;

@Configuration
@ComponentScan(
        basePackages = "com.study.bean"
)
@ImportResource(locations = "applicationContext.xml")
public class AppConfig3 {

    @Bean
    public Customer customer() {
        Customer customer = new Customer();
        customer.setId(1);
        return customer;
    }
}
